package com.ygqh.baby.mapper;

import com.ygqh.baby.model.YgOrderInfoModel;
import com.ygqh.baby.model.YgOrderModel;
import com.ygqh.baby.po.YgOrder;
import com.ygqh.baby.po.YgOrderExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface YgOrderMapper {
    int countByExample(YgOrderExample example);

    int deleteByExample(YgOrderExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgOrder record);

    int insertSelective(YgOrder record);

    List<YgOrder> selectByExample(YgOrderExample example);

    YgOrder selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgOrder record, @Param("example") YgOrderExample example);

    int updateByExample(@Param("record") YgOrder record, @Param("example") YgOrderExample example);

    int updateByPrimaryKeySelective(YgOrder record);

    int updateByPrimaryKey(YgOrder record);

	List<YgOrderModel> selectOrderList(@Param("userId") Long userId);

	YgOrderInfoModel selectOrderInfo(@Param("orderId") Long orderId);

}